<?php

use think\migration\Migrator;
use think\migration\db\Column;

class AddPageSettingField extends Migrator
{

    public function up()
    {
        $this->table('page_setting')
            ->addColumn('act_start_date',"string", ['null' => true, 'default' => '', 'comment' => "活动开始时间"])
            ->addColumn('act_end_date',"string", ['null' => true, 'default' => '', 'comment' => "活动结束时间"])
            ->save();
    }

    public function down()
    {
        $this->table('page_setting')
            ->removeColumn('act_start_date')
            ->removeColumn('act_end_date')
            ->save();
    }
}
